<div>
	<div ng-if="!showCalendar">
		<div class="input-group">
			<span type="text" class="form-control" placeholder="{{format}}" ng-model="ngModel" ng-disabled="disabled" />{{ngModel | date:format}}</span>
			<span class="input-group-btn">
				<button type="button" class="btn btn-default" ng-click="open($event)" ng-disabled="disabled">
					<i class="glyphicon glyphicon-calendar"></i>
				</button>
			</span>
		</div>
	</div>
	<div ng-if="showCalendar">
		<div class="input-group" ng-controller="CalendarCtrl">
			<input type="text" class="form-control" placeholder="{{format}}" datepicker-popup="{{format}}" ng-model="ngModel" is-open="opened" datepicker-options="dateOptions"
				ng-disabled="disabled" ng-required="true" current-text="{{'today' | translate}}" clear-text="{{'clear' | translate}}" close-text="{{'close' | translate}}" /> <span
				class="input-group-btn">
				<button type="button" class="btn btn-default" ng-click="open($event)" ng-disabled="disabled">
					<i class="glyphicon glyphicon-calendar"></i>
				</button>
			</span>
		</div>
	</div>
</div>
